package com.dsg.service.oil.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dsg.dao.oil.DsgOilDataTextMapper;
import com.dsg.entity.oil.DsgOilDataText;
import com.dsg.service.oil.IDsgOilDataTextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 入油数据文本 服务实现类
 * </p>
 *
 * @author system
 * @since 2020-07-02
 */
@Service
public class DsgOilDataTextServiceImpl extends ServiceImpl<DsgOilDataTextMapper, DsgOilDataText> implements IDsgOilDataTextService {

    @Autowired
    private DsgOilDataTextMapper dsgOilDataTextMapper;

    @Override
    public IPage<DsgOilDataText> selectByList(Page<DsgOilDataText> page, DsgOilDataText dsgOilDataText) {
        return page.setRecords(dsgOilDataTextMapper.selectByList(page, dsgOilDataText));
    }
}
